﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ERPStudio;
using System.Data.SqlClient;

namespace ERPForms
{
    public partial class UnitatiMasuraFrm : FrmRezumat
    {
        public UnitatiMasuraFrm(ModuleClass mc): base(mc)
        {
            InitializeComponent();
            workConnString = "ESRPConnectionString";
            ActiveControl = unitatiMasuraDGV;
        }

        private void UnitatiMasuraFrm_Load(object sender, EventArgs e)
        {
            SqlConnection con = DeschideConexiune(workConnString);
            unitatiMasuraTableAdapter.Connection = con;
            this.unitatiMasuraTableAdapter.Fill(this.eSRPDataSet.UnitatiMasura);
            InchideConexiune(con);
            AddBindingSource(unitatiMasuraBindingSource);
            this.listTableAdaptor.Add(unitatiMasuraTableAdapter.Adapter);

            HandleSalvare += Salvare;


        }
    }
}
